home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / cxref_1_4a.lha / cpp / Makefile < prev    next >
Makefile  |  1997-12-07  |  2KB  |  78 lines

  1. # $Header: /home/amb/cxref/cpp/RCS/Makefile 1.11 1997/11/20 19:55:34 amb Exp $
  2. #
  3. # C Cross Referencing & Documentation tool. Version 1.4a.
  4. #
  5. # CPP Makefile.
  6. #
  7. # Written by Andrew M. Bishop
  8. #
  9. # This file Copyright 1995,96 Andrew M. Bishop
  10. # It may be distributed under the GNU Public License, version 2, or
  11. # any higher version.  See section COPYING of the GNU Public license
  12. # for conditions under which this file may be redistributed.
  13. #
  14.  
  15. # Standard definitions, edit ../Makefile.config not this one.
  16. include ../Makefile.config
  17.  
  18. # Auto generated Makefile configuration definitions.
  19. include ./Makefile.cpp
  20.  
  21. ########
  22.  
  23. INCLUDE=
  24. LIBRARY=
  25.  
  26. COMPILE=$(CC) -c -w $(CFLAGS) -DNEED_SVR4_STRINGS=$(SVR4_STRINGS)
  27.  
  28. LINK=$(LD) $(LDFLAGS)
  29.  
  30. ########
  31.  
  32. OBJ_FILES=cccp.o cexp.o version.o
  33.  
  34. ####
  35.  
  36. cxref-cpp : Makefile.cpp $(OBJ_FILES)
  37.     [ $(CONFIG_STATUS) ] || $(LINK) $(OBJ_FILES) -o $@ $(LIBRARY)
  38.     @touch $@
  39.  
  40. ########
  41.  
  42. configure Makefile.cpp: config-cpp
  43.     -CC='$(CC)' ./config-cpp
  44.  
  45. ########
  46.  
  47. clean :
  48.     -rm -f cxref-cpp core *.o *~ y.tab.c Makefile.cpp
  49.  
  50. ########
  51.  
  52. cexp.c : cexp.y
  53.     [ $(CONFIG_STATUS) ] || $(YACC) cexp.y
  54.     @touch $@
  55.     @mv y.tab.c cexp.c
  56.  
  57. ####
  58.  
  59. cccp.o: cccp.c config.h tm.h pcp.h
  60.     [ $(CONFIG_STATUS) ] || $(COMPILE) cccp.c -o $@ $(INCLUDE) \
  61.      '-DLOCAL_INCLUDE_DIR="$(INCLUDE_DIR1)"' \
  62.      '-DTOOL_INCLUDE_DIR="$(INCLUDE_DIR2)"' \
  63.      '-DGCC_INCLUDE_DIR="$(INCLUDE_DIR3)"' \
  64.      '-DGPLUSPLUS_INCLUDE_DIR="."' \
  65.      '-DCPP_PREDEFINES="$(PREDEFINES)"'
  66.     @touch $@
  67.  
  68. ####
  69.  
  70. %.o:%.c
  71.     [ $(CONFIG_STATUS) ] || $(COMPILE) $< -o $@ $(INCLUDE)
  72.     @touch $@
  73.  
  74. version.o    : version.c
  75. cexp.o       : cexp.c config.h tm.h
  76.  
  77. ########
  78.